<!--OSCam;2706637526;1.20-unstable_svn;7311;-->
##TPLHEADER##
##TPLMENU##
##TPLCONFIGMENU##

##TPLMESSAGE##

   <form action="config.html" method="get">
		<input name="part" type="hidden" value="global">
		<input name="action" type="hidden" value="execute">
		<input name="suppresscmd08" type="hidden" value="0">

		<table class="table config">
         <!-- Global -->
         <thead>
			   <tr><th colspan="2">Edit Global Config</th></tr>
         </thead>

			<tr><td>##TPLHELPPREFIX##conf#serverip##TPLHELPSUFFIX##Serverip:</a></td><td><input name="serverip" type="text" size="15" maxlength="15" value="##SERVERIP##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#nice##TPLHELPSUFFIX##Nice:</a></td><td><input name="nice" type="text" size="5" maxlength="5" value="##NICE##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#netprio##TPLHELPSUFFIX##Net prio:</a></td><td><input name="netprio" type="text" size="5" maxlength="5" value="##NETPRIO##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#bindwait##TPLHELPSUFFIX##Bind wait:</a></td><td><input name="bindwait" type="text" size="5" maxlength="5" value="##BINDWAIT##">(seconds)</td></tr>

			<tr>
            <td>##TPLHELPPREFIX##conf#resolvegethostbyname##TPLHELPSUFFIX##Resolver:</a></td>
				<td>
					<select name="resolvegethostbyname">
						<option value="0" ##RESOLVER0##>0 - getadressinfo()</option>
						<option value="1" ##RESOLVER1##>1 - gethostbyname()</option>
					</select>
				</td>
			</tr>

			<tr>
            <td>##TPLHELPPREFIX##conf#waitforcards##TPLHELPSUFFIX##Wait for cards:</a></td>
            <td>
               <select name="waitforcards">
                  <option value="0">0 - enable clientlogins while init</option>
                  <option value="1" ##WAITFORCARDSCHECKED##>1 - disable clientlogins while init</option>
               </select>
            </td>
         </tr>

			<tr><td>##TPLHELPPREFIX##conf#waitforcards_extra_delay##TPLHELPSUFFIX##Extra delay for cards:</a></td><td><input name="waitforcards_extra_delay" type="text" size="5" maxlength="5" value="##EXTRADELAY##">(miliseconds)</td></tr>

			<tr>
            <td>##TPLHELPPREFIX##conf#preferlocalcards##TPLHELPSUFFIX##Prefer local cards:</a></td>
            <td>
               <select name="preferlocalcards">
                  <option value="0">0 - local cards like proxied</option>
                  <option value="1" ##PREFERLOCALCARDSCHECKED##>1 - prefer local cards</option>
               </select>
            </td>
         </tr>

			<tr>
            <td>##TPLHELPPREFIX##conf#unlockparental##TPLHELPSUFFIX##Unlock parental:</a></td>
            <td>
               <select name="unlockparental">
                  <option value="0">NO</option>
                  <option value="1" ##UNLOCKPARENTALCHECKED##>YES</option>
               </select>
            </td>
         </tr>

         <tr>
            <td>##TPLHELPPREFIX##conf#block_same_ip##TPLHELPSUFFIX##Simple block same ip:</a></td>
            <td>
               <select name="block_same_ip">
                  <option value="0">NO</option>
                  <option value="1" ##BLOCKSAMEIPCHECKED##>YES</option>
               </select>
            </td>
         </tr>

         <tr>
            <td>##TPLHELPPREFIX##conf#block_same_name##TPLHELPSUFFIX##Simple block same name:</a></td>
            <td>
               <select name="block_same_name">
                  <option value="0">NO</option>
                  <option value="1" ##BLOCKSAMENAMECHECKED##>YES</option>
               </select>
            </td>
         </tr>

         <tr>
            <td>##TPLHELPPREFIX##conf#dropdups##TPLHELPSUFFIX##Drop duplicate users:</a></td>
            <td>
               <select name="dropdups">
                  <option value="0">NO</option>
                  <option value="1" ##DROPDUPSCHECKED##>YES</option>
               </select>
            </td>
         </tr>

         ##TPLSUPPRESSCMD08##

         <!-- Logging -->
			<thead>
            <tr><th colspan="2">Logging</th></tr>
         </thead>

			<tr><td>##TPLHELPPREFIX##conf#disableuserfile##TPLHELPSUFFIX##Usr file:</a></td>
				<td>
					<input name="usrfile" type="text" size="63" maxlength="128" value="##USERFILE##">
					<select name="disableuserfile"><option value="0">0 - enabled</option><option value="1" ##DISABLEUSERFILECHECKED##>1 - disabled</option></select>
					<select name="usrfileflag"><option value="0">0 - just join/leave</option><option value="1" ##USERFILEFLAGCHECKED##>1 - each zap</option></select>
				</td>
			</tr>

			<tr><td>##TPLHELPPREFIX##conf#disablemail##TPLHELPSUFFIX##Mail file:</a></td>
				<td>
					<input name="mailfile" type="text" size="30" maxlength="128" value="##MAILFILE##">
					<select name="disablemail"><option value="0">0 - enabled</option><option value="1" ##DISABLEMAILCHECKED##>1 - disabled</option></select>
				</td>
			</tr>
			<tr><td>##TPLHELPPREFIX##conf#logfile##TPLHELPSUFFIX##Log file / max size:</a></td>
				<td>
					<input name="logfile" type="text" size="63" maxlength="128" value="##LOGFILE##">
					<select name="disablelog"><option value="0">0 - enabled</option><option value="1" ##DISABLELOGCHECKED##>1 - disabled</option></select>
					<input name="maxlogsize" type="text" size="5" maxlength="5" value="##MAXLOGSIZE##"> kB
				</td>
			</tr>

			<tr><td>##TPLHELPPREFIX##conf#cwlogdir##TPLHELPSUFFIX##CW log dir:</a></td><td><input name="cwlogdir" type="text" size="63" maxlength="128" value="##CWLOGDIR##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#emmlogdir##TPLHELPSUFFIX##EMM log dir:</a></td><td><input name="emmlogdir" type="text" size="63" maxlength="128" value="##EMMLOGDIR##"></td></tr>
         <TR><TD>##TPLHELPPREFIX##conf#ecmfmt##TPLHELPSUFFIX##ECM log format:</A></TD><TD><input name="ecmfmt" type="text" size="63" maxlength="128" value="##ECMFMT##"></TD></TR>
			<tr><td>##TPLHELPPREFIX##conf#loghistorysize##TPLHELPSUFFIX##Loghistory Size:</a></td><td><input name="loghistorysize" type="text" size="5" maxlength="4" value="##LOGHISTORYSIZE##"></td></tr>

			##TPLENABLELEDBIT##

         <!-- Failban -->
         <thead>
            <tr><th colspan="2">Failban</th></tr>
         </thead>

			<tr><td>##TPLHELPPREFIX##conf#failbantime##TPLHELPSUFFIX##Failban time:</a></td><td><input name="failbantime" type="text" size="5" maxlength="6" value="##FAILBANTIME##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#failbancount##TPLHELPSUFFIX##Failban count:</a></td><td><input name="failbancount" type="text" size="5" maxlength="2" value="##FAILBANCOUNT##"></td></tr>

         <!-- Timeouts -->
         <thead>
			   <tr><th colspan="2">Timings</th></tr>
         </thead>
         <tr><td>##TPLHELPPREFIX##conf#serialreadertimeout##TPLHELPSUFFIX##Serial reader timeout:</a></td><td><input name="serialreadertimeout" type="text" size="5" maxlength="5" value="##SERIALTIMEOUT##">(milliseconds)</td></tr>
			<tr><td>##TPLHELPPREFIX##conf#clienttimeout##TPLHELPSUFFIX##Client timeout:</a></td><td><input name="clienttimeout" type="text" size="5" maxlength="5" value="##CLIENTTIMEOUT##"> ms to give up and return timeout</td></tr>
			<tr><td>##TPLHELPPREFIX##conf#fallbacktimeout##TPLHELPSUFFIX##Fallback timeout:</a></td><td><input name="fallbacktimeout" type="text" size="5" maxlength="5" value="##FALLBACKTIMEOUT##"> ms to switch to fallback reader</td></tr>
			<tr><td>##TPLHELPPREFIX##conf#clientmaxidle##TPLHELPSUFFIX##Client max idle:</a></td><td><input name="clientmaxidle" type="text" size="5" maxlength="5" value="##CLIENTMAXIDLE##"> s to disconnect idle clients</td></tr>
			<tr><td>##TPLHELPPREFIX##conf#sleep##TPLHELPSUFFIX##Global sleep:</a></td><td><input name="sleep" type="text" size="5" maxlength="5" value="##SLEEP##"> min to switch a client in sleepmode</td></tr>
			<tr><td>##TPLHELPPREFIX##conf#readerrestartseconds##TPLHELPSUFFIX##Reader restart seconds:</a></td><td><input name="readerrestartseconds" type="text" size="5" maxlength="5" value="##READERRESTARTSECONDS##"> s waittime to restart a reader</td></tr>
         
         <!-- Double Check -->
         <thead>
            <tr><th colspan="2">Double Check</th></tr>
         </thead>

			<tr>
            <td>##TPLHELPPREFIX##conf#double_check##TPLHELPSUFFIX##ECM Doublecheck:</a></td>
            <td>
               <select name="double_check">
                  <option value="0">NO</option>
                  <option value="1" ##DCHECKCSELECTED##>YES</option>
               </select>
            </td>
         </tr>
         <tr><td>##TPLHELPPREFIX##conf#double_check_caid##TPLHELPSUFFIX##Doublecheck CAIDss:</a></td><td><input name="double_check_caid" type="text" size="63" maxlength="160" value="##DOUBLECHECKCAID##"></td></tr>
         
         <!-- Cache & Cache EX -->
         <thead>
            <tr><th colspan="2">Cache</th></tr>
         </thead>

         <tr><td>##TPLHELPPREFIX##conf#cachedelay##TPLHELPSUFFIX##Cache delay:</a></td><td><input name="cachedelay" type="text" size="5" maxlength="5" value="##CACHEDELAY##">(miliseconds) delaying answers from cache</td></tr>
         <tr><td>##TPLHELPPREFIX##conf#max_cache_time##TPLHELPSUFFIX##Max cache time:</a></td><td><input name="max_cache_time" type="text" size="5" maxlength="5" value="##MAXCACHETIME##">(seconds) keep ECMs in cache time</td></tr>
         <tr><td>##TPLHELPPREFIX##conf#max_cache_count##TPLHELPSUFFIX##Max cache count:</a></td><td><input name="max_cache_count" type="text" size="5" maxlength="5" value="##MAXCACHECOUNT##">(ECMs) to keep in cache</td></tr>

         ##TPLCACHEEXWAITTIME##
         
         <!-- SAVE -->
         <tr><td colspan="2" class="last-row"><input type="submit" value="Save" ##BTNDISABLED## class="btn btn-large btn-success"></td></tr>

		</table>
	</form>

##TPLFOOTER##
